package cn.tedu.csmall.product.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 添加品牌的DTO类
 *
 * @author java@杨波
 * @version 0.0.1
 */
@Data
public class BrandAddNewDTO implements Serializable {

    /**
     * 品牌名称
     */
    @NotNull(message = "添加品牌失败,必须提交品牌名称")
    @ApiModelProperty(value = "品牌名称", example = "华为Mat", required = true)
    private String name;

    /**
     * 品牌名称的拼音
     */
    @ApiModelProperty(value = "品牌名称的拼音", example = "华为Mat", required = true)
    private String pinyin;

    /**
     * 品牌logo的URL
     */
    @ApiModelProperty(value = "品牌的logo", example = "华为Mat", required = true)
    private String logo;

    /**
     * 品牌的简介
     */
    @ApiModelProperty(value = "品牌的简介", example = "很好用", required = true)
    private String description;

    /**
     * 关键词列表，各关键词使用英文的逗号隔开
     */
    @ApiModelProperty(value = "品牌的关键词列表", example = ",", required = true)
    private String keywords;

    /**
     * 自定义排序的序号
     */
    @ApiModelProperty(value = "品牌的排序序号", example = "1", required = true)
    private Integer sort;

    /**
     * 品牌的销售数量
     */
    @ApiModelProperty(value = "品牌的销售数量", example = "100", required = true)
    private Long sales;

    /**
     * 商品种类数量总和（冗余）
     */
    @ApiModelProperty(value = "品牌的商品数量总和", example = "200", required = true)
    private Long productCount;

    /**
     *买家评论数量总和（冗余）
     */
    @ApiModelProperty(value = "品牌买家品论数量的总和", example = "300", required = true)
    private Long commentCount;

    /**
     *买家好评数量总和（冗余）
     */
    @ApiModelProperty(value = "品牌买家好评数量总和", example = "400", required = true)
    private Long positiveCommentCount;

    /**
     * 是否启用，1=启用，0=未启用
     */
    @ApiModelProperty(value = "品牌是否启用", example = "是", required = true)
    private Integer enable;
}
